# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Vladimir Chizhov <jagoterr@gmail.com>

pkgname=odt2txt
pkgver=0.5
pkgrel=5
_commit=de7f920f4d8fc858b448d118189c791fe8d7fbca
pkgdesc="extracts the text out of OpenDocument Texts"
url="https://github.com/dstosberg/odt2txt/"
license=("GPL2")
arch=('loong64' 'x86_64')
depends=('zlib' 'libzip')
makedepends=('git')
source=("$pkgname::git+https://github.com/dstosberg/odt2txt.git#commit=${_commit}")
sha256sums=('SKIP')

build() {
  cd "$srcdir"/$pkgname
  make
}

package() {
  cd "$srcdir"/$pkgname
  install -Dm755 odt2txt "$pkgdir"/usr/bin/odt2txt
  install -Dm644 odt2txt.1 "$pkgdir"/usr/share/man/man1/odt2txt.1
}
